#pragma once
// CHyperLink
class CHyperLink : public CEdit
{
	DECLARE_DYNAMIC(CHyperLink)

public:
	CHyperLink();
	virtual ~CHyperLink();

public:

	void SetURL(CString strURL);
	CString GetURL() const;
	void SetColor(COLORREF clr, BYTE clrItem);//set colors
	COLORREF GetColor(BYTE clrItem);//Get the color
									// Overrides
									// ClassWizard generated virtual function overrides
									//{{AFX_VIRTUAL(CHyperLink)
protected:
	//virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

	// Implementation
protected:
	int GotoURL(LPCTSTR url, int showcmd);
	// Protected attributes
protected:
	COLORREF m_clrHot;      // Link normal color
	COLORREF m_clrNor;      // Link active color
	COLORREF m_clrBG;       // Link active color
	BOOL     m_bHot;                // Is the link active?
	CString  m_strURL;                  // Hyperlink URL string

										// Generated message map functions
protected:
	//{{AFX_MSG(CHyperLink)

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
};